package org.sd.component;

import org.sd.event.SolrDataDiffLargeEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class SolrDiffListener {

    /**
     * 发送报警邮件
     * @param event
     */
    @EventListener
    private void sendWarnEmail(SolrDataDiffLargeEvent event) {

        System.out.println(event.getContent());
    }
}
